import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
export class CreatePostDto {
  @IsNotEmpty({ message: '文章标题必填' })
  readonly title: string;

  @IsNotEmpty({ message: 'author必填' })
  readonly author: string;

  @IsNotEmpty({ message: 'content必填' })
  readonly content: string;

  @IsNotEmpty({ message: 'type必填' })
  readonly type: number;
}
